package com.web.base.open.message;

import com.blue.validation.IdList;
import com.blue.validation.group.SaveModel;
import com.blue.validation.group.UpdateModel;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 开放平台角色-链接请求内容
 * 
 * @author 代码由 blue-code 框架生成
 * @since 1.0 2017年02月27日
 */
public class RoleUrlRequest implements Serializable
{
	private static final long serialVersionUID = 1L;

	@NotNull(groups = { SaveModel.class, UpdateModel.class }, message = "角色ID不能为空")
	private Integer roleId;
	@NotNull(groups = { SaveModel.class }, message = "链接ID不能为空")
	private Integer urlId;

	@NotBlank(groups = { UpdateModel.class }, message = "链接ID列表不能为空")
	@IdList(groups = { UpdateModel.class }, message = "链接ID列表格式无效")
	private String urlIds;

	public RoleUrlRequest()
	{
	}

	public Integer getRoleId()
	{
		return this.roleId;
	}

	public void setRoleId(Integer roleId)
	{
		this.roleId = roleId;
	}

	public Integer getUrlId()
	{
		return this.urlId;
	}

	public void setUrlId(Integer urlId)
	{
		this.urlId = urlId;
	}

	public String getUrlIds()
	{
		return urlIds;
	}

	public void setUrlIds(String urlIds)
	{
		this.urlIds = urlIds;
	}

}
